package com.shensi.api.admin.client.station;

import com.shensi.api.admin.client.fallback.monitor.SysLogininforClientFallBack;
import com.shensi.api.admin.domian.station.dto.AutoPayWayDto;
import com.shensi.api.admin.domian.station.dto.PayWayDto;
import com.shensi.api.admin.domian.station.dto.PhysicalCardBalanceDto;
import com.shensi.api.admin.domian.station.dto.PhysicalCardBalanceListDto;
import com.shensi.api.admin.domian.station.dto.PhysicalCardSecretKeyDto;
import com.shensi.api.admin.domian.station.vo.AutoPayWayInfoVo;
import com.shensi.common.core.constant.CloudConstant;
import com.shensi.common.core.domain.AjaxResult;
import com.shensi.common.core.page.TableDataInfo;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;


/**
 * @author mao
 */
@FeignClient(
        value = CloudConstant.ADMIN_SERVER,
        fallbackFactory = SysLogininforClientFallBack.class)
@Component
public interface PhysicalCardBalanceClient {

    /**实体卡充值*/
    @PostMapping("/physicalCardBalance/recharge")
    @ApiOperation(value = "实体卡充值",response = PhysicalCardSecretKeyDto.class)
    public AjaxResult recharge(@RequestBody PhysicalCardBalanceDto physicalCardBalanceDto);


    /**查询充值/消费记录列表*/
    @GetMapping("/physicalCardBalance/list")
    public TableDataInfo physicalCardBalanceList(PhysicalCardBalanceListDto physicalCardBalanceListDto);


    /**导出充值/消费记录Excel表*/
    @GetMapping("/physicalCardBalance/export")
    public AjaxResult export(PhysicalCardBalanceListDto physicalCardBalanceListDto);

}
